package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.RProInvoiceRecd;

public class ContractPagerActivity extends BasePagerActivity {

  public static final String EXTRA_CUSTOMER_ID = "com.isunland.managesystem.ui.EXTRA_CUSTOMER_ID";
  public static final String EXTRA_UPDATE_CONTRACT =
      "com.isunland.managesystem.ui.EXTRA_UPDATE_CONTRACT";
  private BillListFragment mBillListFragment;
  private ContractReceiptListFragment mContractListFragment;
  //	private ProjectListFragment mProjectListFragment;

  private int[] mTitleId = {
      R.string.buySellContract, R.string.contractList

      //			,R.string.projectList
  };
  private RProInvoiceRecd mDetail;
  private String mCustomerId;

  @Override protected void onCreate(Bundle arg0) {
    //		 mDetail=(RProInvoiceRecd)getIntent().getSerializableExtra(ReceiptInfoFragment.EXTRA_RECEIPT);
    mCustomerId = getIntent().getStringExtra(EXTRA_CUSTOMER_ID);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    mBillListFragment = BillListFragment.newInstance(mCustomerId);
    return mBillListFragment;
  }

  @Override protected Fragment createFragmentTwo() {
    mContractListFragment = ContractReceiptListFragment.newInstance(mCustomerId);
    return mContractListFragment;
  }
  //	@Override
  //	public Fragment createFragmentThree() {
  //		mProjectListFragment=ProjectListFragment.newInstance(mCustomerId);
  //		 return mProjectListFragment;
  //	}

  @Override protected int[] createTitle() {

    return mTitleId;
  }
}
